<layout name='Layout/public' />

{:W('PageHeader',array('name'=>'会员管理'))}
<div class="operate panel panel-default hidden-480">
    <form name="myform"  method="GET" >
        <input type="hidden" name="m" value="User">
        <div class="panel-body">  
            <div class="pull-left col-xs-8 col-sm-12">
                日期：
                <input type="text"  name="start_time" value="{$_GET.start_time}"  id="start_time" size="8" height="30">

                &nbsp;至&nbsp;
                <input type="text"  name="end_time" value="{$_GET.end_time}"  id="end_time" size="8"> 
                {:fromdate('start_time')}{:fromdate('end_time')}

                {:select($s['status_arr'],$_GET['status'],'name="status"','-状态-')}
                {:select($s['order_arr'],$_GET['order'],'name="order"','-排序选择-')}
                {:select($s['select_arr'],$_GET['select'],'name="select"','-条件-')}
                <input type="text" name="content"  size='10' value="{$Think.get.content}">

                <input type="submit" value="搜索" class="btn btn-danger btn-sm">
                <input type="submit" name="export" value="导出" class="btn btn-success btn-sm">
                <span class="btn btn-info btn-sm" onclick="window.location.href = '?m={$mod}'">重置</span>

            </div>
        </div>
    </form>
</div>

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="row">
            <div class="col-xs-12">
                <table id="sample-table-1" class="table table-bordered table-hover">
                    <thead>
                        <tr>

                            <th class="hidden-480">id</th>
                            <th >头像</th>
                            <th >昵称</th>
                            <th>性别</th>
                            <th class="hidden-480">手机</th>
                            <th>金币</th>
                            <th>运动</th>
                            <th>发现</th>
                            <th>评论</th>
                            <th>赞</th>

                            <th class="hidden-480">
                                <i class="icon-time bigger-110 hidden-480"></i>
                                登陆时间
                            </th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                    </thead>

                    <tbody>
                    <foreach name="data" item="v">
                        <tr>


                            <td class="hidden-480"><a href="?m={$mod}&a=info&id={$v.id}">{$v.id}</a></td>

                            <td> 
                                <div class="user"><img src="{$v.img}" class="img-circle" onerror="this.src='__PUBLIC__/assets/avatars/avatar4.png'" width="30" heigth="30" onclick="alert_img(this.src)" /></div></td>
                            <td>{$v.name}<if condition="$v.weibotype neq ''"><span class='red'>[{$v.weibotype}]</span></if></td>
                            <td>{$v.sex}</td>
                            <td class="hidden-480">{$v.phoneno|default=''}</td>

                            <td><a href="?m=Coins&select=uid&content={$v.id}">{$v.coins}</a></td>
                            <td><a href="?m=Task&select=uid&content={$v.id}">{$v.task_count}</a></td>
                            <td><a href="?m=Find&select=uid&content={$v.id}">{$v.find_count}</a></td>
                            <td>{$v.comment_count}</td>
                            <td>{$v.like_count}</td>
                            <td class="hidden-480">
                                <span >{$v.last_time}</span>
                            </td>
                            <td><a href='?m={$mod}&a=status&id={$v.id}&status={$v.status}'><if condition="$v.status eq 1"><span class="green">正常</span><else/><span class="red">停用</span></if></a></td>

                            <td>
                                <div class="hidden-sm hidden-xs btn-group">

                                    <button class="btn btn-xs btn-success" onclick="window.location.href = '?m={$mod}&a=info&id={$v.id}'">
                                        <i class="ace-icon fa fa-search bigger-120" ></i>
                                    </button>


                                    <button class="btn btn-xs btn-danger" onclick="alert_del('?m={$mod}&a=del&id={$v.id}', '确认要删除『{$v.name}』吗？')">
                                        <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                    </button>

                                </div>

                                <div class="hidden-md hidden-lg">
                                    <div class="inline position-relative">
                                        <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
                                            <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
                                        </button>

                                        <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
                                            <li>
                                                <a href="?m={$mod}&a=info&id={$v.id}" class="tooltip-info" data-rel="tooltip" title="View">
                                                    <span class="blue">
                                                        <i class="ace-icon fa fa-search-plus bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>

                                            <li>
                                                <a href="#" class="tooltip-error" data-rel="tooltip" title="Delete" onclick=" return alert_del('?m={$mod}&a=del&id={$v.id}', '确认要删除『{$v.name}』吗？')">
                                                    <span class="red">
                                                        <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                                    </span>
                                                </a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </foreach>


                    </tbody>
                </table>

                <div class="row">
                    <div class="col-sm-2">
                        <div class="dataTables_info" id="sample-table-2_info">
                            共:{$count}条记录
                        </div>
                    </div>
                    <div class="col-sm-10">
                        <div class="dataTables_paginate paging_bootstrap">
                            <ul class="pagination">
                                {$page}
                            </ul>
                        </div>
                    </div>
                </div>  
            </div><!-- /.span -->
        </div><!-- /.row -->


        <!-- PAGE CONTENT ENDS -->
    </div><!-- /.col -->
</div><!-- /.row -->

